SET SESSION TRANSACTION ISOLATION LEVEL SERIALIZABLE;

BEGIN;
INSERT INTO books VALUES (0,'JAVA',60,998,1212);
SAVEPOINT java;
INSERT INTO books VALUES (1,'Python',80,100,1001);
ROLLBACK TO java;
COMMIT;
